package com.myframe.www;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.View;

import com.myframe.www.base.BaseActivity;
import com.myframe.www.main.MainBottomFragment;

import butterknife.ButterKnife;
import io.reactivex.Observer;
import io.reactivex.functions.Consumer;

public class MainActivity extends BaseActivity {

    private static final String TAG = "MainActivity";

    @Override
    protected int getContentViewLayoutId() {
        return R.layout.activity_main;
    }

    @Override
    protected void initToolbar() {
//        hideToolbar();
        mToolbar.setVisibility(View.GONE);
    }

    @Override
    protected void bindView() {
        super.bindView();

    }

    @Override
    protected void onViewCreated(Bundle savedInstanceState) {
        //必需继承FragmentActivity,嵌套fragment只需要这行代码
        getSupportFragmentManager().beginTransaction().replace(R.id.fragBottomMenu, new MainBottomFragment()).commitAllowingStateLoss();
    }



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }


}
